<?php
// 事件定义文件
return [
    'bind' => [
    ],

    'listen' => [
        'AppInit'  => [],
        'HttpRun'  => [],
        'HttpEnd'  => [],
        'LogLevel' => [],
        'LogWrite' => [],
        /**
         * 会员相关事件
         */
        //会员注册事件
        'MemberRegister' => ['app\listener\member\MemberRegisterListener'],
        //会员登录事件
        'MemberLogin' => ['app\listener\member\MemberLoginListener'],

        /**
         * 订单相关事件
         */
        //订单创建后
        'AfterShopOrderCreate' => [ 'app\listener\order\AfterShopOrderCreate' ],
        //订单收货后
        'AfterShopOrderFinish' => [ 'app\listener\order\AfterShopOrderFinish' ],
        // 订单拒绝后
        'AfterShopOrderRefuse' => [ 'app\listener\order\AfterShopOrderRefuse' ],
        //订单寄回后
        'AfterShopOrderReturn' => [ 'app\listener\order\AfterShopOrderReturn' ],

        /**
         * 支付相关事件
         */
        //转账成功
        'TransferSuccess' => ['app\listener\pay\TransferSuccessListener'],
        'TransferFail' => ['app\listener\pay\TransferFailListener'],
    ],

    'subscribe' => [
    ],
];
